const fs = require('fs/promises')
const { resolve } = require('path')
// const config = require('../moxcss.config.js')

const initFn = async ()=>{
	let filePath = './moxcss.config.js'
	// let strConfig = JSON.stringify(config)
	let config = await fs.readFile(resolve(__dirname, '../template/config-tp.js'))
 	await fs.writeFile(filePath, config)
	console.log('moxcss.config.js create ok')
}

module.exports = initFn
